﻿using CefSharp.WinForms;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MainView
{
    public partial class ErpWeb : Form
    {
        public ErpWeb()
        {
            InitializeComponent();
        }
        //主页IP，可通过配置文件修改
        public static string home{ get; private set; } = MainView.Properties.Settings.Default.home;

        private void ErpWeb_Load(object sender, EventArgs e)
        {       
            string url = home;
            ChromiumWebBrowser webview = new ChromiumWebBrowser(url);
            webview.Dock = DockStyle.Fill;
            this.Controls.Add(webview);           
        }
    }
}
